package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.AnswerDaoIF;
import de.hhbk.feedbackmodul.entities.Answer;
import de.hhbk.feedbackmodul.remoteInterfaces.AnswerRemoteIF;

@Stateless
public class AnswerSessionBean implements AnswerRemoteIF {

	@EJB
	private AnswerDaoIF dao;
	
	@Override
	public List<Answer> getAllAnswers() throws Exception {
		return dao.getAllAnswers();
	}

	@Override
	public void createAnswer(Answer answer) throws Exception {
		dao.createAnswer(answer);
	}

	@Override
	public void updateAnswer(Answer answer) throws Exception {
		dao.updateAnswer(answer);
	}

	@Override
	public void deleteAnswer(Answer answer) throws Exception {
		dao.deleteAnswer(answer);
		
	}

}
